@tailwind base;
@tailwind components;
@tailwind utilities;

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 自定义全局样式 */
body {
  background-color: #f8f8f0;
  color: #222222;
  line-height: 1.6;
}

/* 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  
  .text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  
  .image-hover {
    transition: all 300ms ease-in-out;
  }
  
  .image-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  .nav-link {
    @apply relative px-3 py-2 text-ink-light transition-colors duration-300 hover:text-ink;
  }
  
  .nav-link::after {
    @apply content-[''] absolute bottom-0 left-0 h-0.5 w-0 bg-ink transition-all duration-300;
  }
  
  .nav-link:hover::after {
    @apply w-full;
  }
}